/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import com.wf.captcha.ArithmeticCaptcha;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * <p>Project: app2022 - Easy2
 * <p>Powered by webrx On 2022-01-25 11:33:10
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Easy2 {
    public static void main(String[] args) throws FileNotFoundException {
        //此验证码类型，使用的是jdk1.8 的javascript Engine, 新版本中已经取消了此引擎，所以报错
        ArithmeticCaptcha c = new ArithmeticCaptcha();

        
        //Gif
        System.out.println(c.text());
        c.out(new FileOutputStream("c4.gif"));
        System.out.println(c.toBase64());
    }
}
